package com.github.phoenics.teacher.itheima.im.transfer.config;

import com.github.phoenics.teacher.itheima.im.user.status.factory.UserStatusServiceFactory;
import com.github.phoenics.teacher.itheima.im.user.status.servic.UserStatusService;
import com.github.phoenics.teacher.itheima.im.user.status.servic.impl.RedisUserStatusServiceImpl;
import com.google.inject.AbstractModule;
import com.google.inject.assistedinject.FactoryModuleBuilder;

/**
 * @author Phoenics Chow
 * on 2020年03月06日
 */
public class TransferModule extends AbstractModule {

    @Override
    protected void configure() {
        install(new FactoryModuleBuilder()
                .implement(UserStatusService.class, RedisUserStatusServiceImpl.class)
                .build(UserStatusServiceFactory.class));
    }
}